/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-09-11
 * Time: 14:11
 */
public class Child extends Parent{
    public void eat(){
        System.out.println("child eat!!!");
    }

    public static void main(String[] args) {
        Parent p = new Child();
        p.eat();
        Parent p2 = new Parent();
        p2.eat();
        Child p3 = new Child();
        p3.eat();

    }
}
